$(function(){
	$("tbody tr:odd").css("background-color","#edf8fa");
});

function delVisitor(ip,id){
	$.prompt('<h3>Delete</h3>'+'<p align="center">Delete '+ip+' ?</p>'+
		'<img src="/images/help.gif" alt="help" '+'class="helpImg" />',
		{callback:del,buttons:{Ok:id,Cancel:false},prefix:'brownJqi'});
}
	
function del(id) {    
	if(id){
	 $.post("/admin/visitor/del/"+id, function(){
			$("#manage").load("/admin/visitor/list/1");
		});
	}
}
function pre(page) {
	$("#manage").load("/admin/visitor/list/"+page);
}

function next(page) {
	$("#manage").load("/admin/visitor/list/"+page);
}